/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.excellent_student.entity;

import org.hibernate.validator.constraints.Length;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 优秀在校生Entity
 * @author hang
 * @version 2017-01-15
 */
public class TbExcellentStudent extends DataEntity<TbExcellentStudent> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 姓名
	private Date birthday;		// 生日
	private String schoolNumber;		// 学号
	private String degree;		// 学位类别
	private String enrollKind;		// 录取类型
	private String enrollTime;		// 录取年月
	private String introduction;		// 优秀在校生简介
	private Date createTime;		// 创建时间
	private Date updateTime;		// 更新时间
	
	public TbExcellentStudent() {
		super();
	}

	public TbExcellentStudent(String id){
		super(id);
	}

	@Length(min=0, max=50, message="姓名长度必须介于 0 和 50 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	
	@Length(min=0, max=200, message="学号长度必须介于 0 和 200 之间")
	public String getSchoolNumber() {
		return schoolNumber;
	}

	public void setSchoolNumber(String schoolNumber) {
		this.schoolNumber = schoolNumber;
	}
	
	@Length(min=0, max=64, message="学位类别长度必须介于 0 和 64 之间")
	public String getDegree() {
		return degree;
	}

	public void setDegree(String degree) {
		this.degree = degree;
	}
	
	@Length(min=0, max=64, message="录取类型长度必须介于 0 和 64 之间")
	public String getEnrollKind() {
		return enrollKind;
	}

	public void setEnrollKind(String enrollKind) {
		this.enrollKind = enrollKind;
	}
	
	@Length(min=0, max=64, message="录取年月长度必须介于 0 和 64 之间")
	public String getEnrollTime() {
		return enrollTime;
	}

	public void setEnrollTime(String enrollTime) {
		this.enrollTime = enrollTime;
	}
	
	@Length(min=0, max=500, message="优秀在校生简介长度必须介于 0 和 500 之间")
	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
}